/**
 * mock 模拟数据模块对外入口
 */
// 在这里可以做一些通用的配置
const mock = require("mockjs");
// 设置所有ajax请求的超时时间，模拟网络传输耗时
mock.setup({
  timeout: 500 - 2000
});

import screen from './screen'
import sewage from './sewage'

mock.mock(/\/screen\/factor_alarms/, 'get', screen.mockFactorAlarms());

mock.mock(/\/screen\/device_alarms/, 'get', screen.mockDeviceAlarms());

mock.mock(/\/screen\/device_faulty/, 'get', screen.mockDeviceFaulty());

mock.mock(/\/screen\/factor_exceeded/, 'get', screen.mockFactorExceeded());

mock.mock(/\/screen\/comprehensive_data/, 'get', screen.mockComprehensiveData());

// mock模拟水质污染源最新值
mock.mock(/\/sewage-service\/sewage\/jingzhu16888xiaogan16888\/system\/jingzhu16888xiaogan16888\/factor\/pH\/latest/,
'get', sewage.mockPHLatestValue().latestValue);

mock.mock(/\/sewage-service\/sewage\/jingzhu16888xiaogan16888\/system\/jingzhu16888xiaogan16888\/factor\/cod\/latest/,
  'get', sewage.mockCODLatestValue().latestValue);

mock.mock(/\/sewage-service\/sewage\/jingzhu16888xiaogan16888\/system\/jingzhu16888xiaogan16888\/factor\/tN\/latest/,
  'get', sewage.mockTNLatestValue().latestValue);

mock.mock(/\/sewage-service\/sewage\/jingzhu16888xiaogan16888\/system\/jingzhu16888xiaogan16888\/factor\/nH3N\/latest/,
  'get', sewage.mockNH3NLatestValue().latestValue);

mock.mock(/\/sewage-service\/sewage\/jingzhu16888xiaogan16888\/system\/jingzhu16888xiaogan16888\/factor\/tP\/latest/,
  'get', sewage.mockTPLatestValue().latestValue);
export default mock
